package com.xinyue.network.message.stream;

import com.xinyue.network.message.error.IServerError;

public interface IMessageHeader extends IMessageSerializable{

    int getHeaderByteSize();
    int getMessageId();
    int getServiceId();
    int getMessageSeqId();
    int getErrorCode();
    EnumMesasageType getMessageType();
    void setMessageId(int messageId);
    void setServiceId(int serviceId);
    void setErrorCode(int errorCode);
    void setErrorCode(IServerError error);
    void setMessageType(EnumMesasageType mesasageType);
    
}
